import request from '@/utils/axios'

export function getPageData(data) {
  return request({
    url: `/admin/pet/tag/page`,
    method: 'post',
    data
  })
}

export function addTag(data) {
  return request({
    url: `/admin/pet/tag`,
    method: 'post',
    data
  })
}

export function editTag(data) {
  return request({
    url: `/admin/pet/tag`,
    method: 'put',
    data
  })
}

export function removeTag(id) {
  return request({
    url: `/admin/pet/tag/${id}`,
    method: 'delete',
    data
  })
}